package com.igeek.service;

import com.igeek.dao.UserDaoImpl1;
import com.igeek.dao.UserDaoImpl2;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import javax.inject.Inject;
import javax.inject.Named;

@Component
public class UserServiceImpl2 {
    @Resource(name = "userDaoImpl2")//id=userDaoImpl2
    private UserDaoImpl2 userDaoImpl2;

    //保存业务方法
    public void save(){
        System.out.println("UserServiceImpl2业务层被调用了。。。");
        userDaoImpl2.save();
    }
}
